package main.com.hushengjin.singleton;

/**
 * 懒汉式，线程不安全
 */
public class LazyUnSafeSingleton {
    private static LazyUnSafeSingleton instance;
    private LazyUnSafeSingleton() {}
    public static LazyUnSafeSingleton getInstance() {
        if (instance == null) return new LazyUnSafeSingleton();
        return instance;
    }
}
